package com.zy.mc_module.ui.micang.adapter;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.zy.mc_module.base.kotlin.BaseAdapter;
import com.zy.mc_module.base.kotlin.BaseViewHolder;
import com.zy.mc_module.databinding.ItemRiceIncomeDetailBinding;
import com.zy.mc_module.mvp.bean.RiceDetailBean;

import java.util.List;

public class RiceIncomeDetailAdapter extends BaseAdapter<ItemRiceIncomeDetailBinding, RiceDetailBean> {
    public RiceIncomeDetailAdapter(@NonNull List<RiceDetailBean> mData) {
        super(mData);
    }

    @NonNull
    @Override
    public ItemRiceIncomeDetailBinding getViewBinding(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        return ItemRiceIncomeDetailBinding.inflate(inflater,parent,false);
    }

    @Override
    protected void onMyBindViewHolder(@NonNull BaseViewHolder<ItemRiceIncomeDetailBinding> holder, int position) {
        holder.getBinding().incomeItemNum.setText("+90");
        holder.getBinding().incomeItemTime.setText("2022-12-26");
        holder.getBinding().incomeItemTotal.setText("total:90");

    }
}
